import theano
import numpy as np
import theano.tensor as T

r = T.row()
print(r.broadcastable)

mtr = T.matrix()
f_row = theano.function([r, mtr], [r + mtr])

R = np.arange(1, 3).reshape(1, 2)
print(R)

M = np.arange(1, 7).reshape(3, 2)
print(M)

print(f_row(R, M))

